package com.example.analysis.controller;

import com.example.analysis.service.EvaluationStudentService;
import com.example.analysis.utils.Response;
import com.example.analysis.vo.ReliabilityVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/evaluation_analysis")
public class EvaluationAnalysisController {
    @Resource
    private EvaluationStudentService evaluationStudentService;

    @GetMapping("/reliability")
    public Response<ReliabilityVO> reliability(String type) {
        ReliabilityVO reliabilityVO = evaluationStudentService.reliabilityAnalysis(type);
        return new Response<>(true, "成功", reliabilityVO, 20000);
    }

}
